#ifndef SCANINGCIRCLE_H
#define SCANINGCIRCLE_H

#include <QWidget>
#include <QColor>
#include <QKeyEvent>
#include <QTimer>

class ScaningCircle : public QWidget
{
    Q_OBJECT
public:
    explicit ScaningCircle(QWidget *parent = 0);

    void setCircle(int r, int lw, QColor lColor, int inter);
    void endThis();

protected:
    void keyPressEvent(QKeyEvent *keyEvent);
    void paintEvent(QPaintEvent *);

private:
    int x;
    int y;
    int interval;
    int scrWidth;
    int scrHeight;
    int radius;
    int lineWidth;
    QColor lineColor;
    QTimer myTimer;

    void drawNewCircle();

signals:

public slots:

};

#endif // SCANINGCIRCLE_H
